package com.atguigu.educms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan({"com.atguigu"}) //指定扫描位置
//mapper包扫描有两种添加方式，方式一：在启动类上添加@MapperScan("mapper包名")，方式二：创建配置类添加，如service_edu中
//service_oss和service_vod中不需要添加@MapperScan("mapper包名")，因为这两个模块没有操作数据库
@MapperScan("com.atguigu.educms.mapper")
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class, args);
    }
}
